<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/4/6
 * Time: 14:59
 */

namespace Admin\Controller;


use Think\Controller;

class BaseController extends  Controller
{
    public function _initialize(){
        $u_data = session('u_data');
        if(empty($u_data)){
            $this->redirect('Login/index');
        }
    }
}